package com.nsu.cl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 年级表
 * @TableName grade
 */
@TableName(value ="grade")
@Data
public class Grade implements Serializable {
    /**
     * 年级ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 年级名称
     */
    private String name;

    /**
     * 年级组长
     */
    private Integer teacherId;

    /**
     * 年级简介
     */
    private String introducation;

    /**
     * 老师信息
     */
    @TableField(exist = false)
    private Teacher teacher;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}